package com.hoyue.attendance.dao;

import com.hoyue.attendance.bean.Attendance;

import java.util.List;
import com.hoyue.attendance.bean.AttendanceVo;

public interface AttendanceMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Attendance record);

    Attendance selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Attendance record);

    // 查询全部学生
    List<AttendanceVo> selectStudent(AttendanceVo attendanceVo);

    // 根据老师姓名模糊查询签到信息
    List<AttendanceVo> checkMessage(AttendanceVo attendanceVo);

    // 获取sys_user和cla_course表的课程名称和教师名字
    List<AttendanceVo> selectCoAnduser(AttendanceVo attendanceVo);

    // 判断学生签到的验证码是否在表中
    int attendIn(AttendanceVo attendanceVo);

    // 根据id查询学生信息
    List<AttendanceVo> selectStudentMess(Integer id);

    // 更新签到数据
    int updateStudent(AttendanceVo attendanceVo);
}